﻿using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LoggerDemo
{
    public class LogPrint
    {
        private readonly ILogger<LogPrint> logger;

        public LogPrint(ILogger<LogPrint> logger) {

            this.logger = logger;
        }

        public void PrintInfo(string message)
        {
            Console.WriteLine("------");
            logger.LogTrace(message);
            logger.LogDebug(message);
            logger.LogInformation(message);
            logger.LogWarning(message);
            logger.LogError(message);
            logger.LogCritical(message);
        }

    }
}
